icontheme: use desired size instead of negative for DIR_UNTHEMED SVGs
authorCosimo Cecchi <cosimoc@gnome.org>
Mon, 23 Feb 2015 01:53:18 +0000 (17:53 -0800)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 23 Feb 2015 17:56:06 +0000 (09:56 -0800)
commiteddaf01676d3f6f28ca2609146be03a3dc9fd0b8
tree69df09cfa32602d87cdef10c4ae8067ebc8a7b0d
parentacd72ffabe88ae4078e1cc1c4c2377c6ea5aac5c
icontheme: use desired size instead of negative for DIR_UNTHEMED SVGs

When loading SVGs from ICON_THEME_DIR_UNTHEMED GtkIconInfos,
such as those created for a GLoadableIcon, the size of the pixbuf to
load is set as a product of icon_info->scale.
But a few lines above, icon_info->scale is set to -1 for
ICON_THEME_DIR_UNTHEMED GtkIconInfos, so we'll end up always passing a
negative size to the GdkPixbuf loader, which is interpreted as the
nominal size of the image file.
Instead load the SVG at the desired scaled size in that case.

This fixes blurry icon in the notification panel in gnome-shell.

https://bugzilla.gnome.org/show_bug.cgi?id=744991
gtk/gtkicontheme.c